package com.sea.finance.service;


import com.sea.finance.entity.ExchangeRate;
import com.sea.finance.entity.ExchangeRateRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 陈鸿飞
 */
public interface ExchangeRateRecordService {

    /**
     * 查询指定
     * @param rateId
     * @return
     */
    List<ExchangeRateRecord> findByRateId(Integer rateId);

    /**
     * 新增
     * @param rate
     * @return
     */
    int save(ExchangeRateRecord rate);
    /**
     * 查找对应期间
     * @param rateId
     * @param period
     * @return
     */
    ExchangeRateRecord findByPeriod(Integer rateId, String period);

}
